//
//  LGController.h
//  ALS-02
//
//  Created by guomianxiang on 16/11/8.
//  Copyright © 2016年 guomianxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LGDoor.h"
@interface LGController : NSObject<NSCoding,NSCopying>

@property (copy, nonatomic) NSString *name;
@property (copy, nonatomic) NSString *sn;
@property (copy, nonatomic) NSString *ip;
@property (copy, nonatomic) NSString *port;
@property (copy, nonatomic) NSArray<LGDoor *> *doors;
// 自动搜索控制器时需要的属性
@property (assign, nonatomic) BOOL search;
@property (strong, nonatomic) NSString *mac;
@property (assign, nonatomic) BOOL exist;

+ (instancetype)controllerWithData:(NSData *)data;
- (instancetype)initWithData:(NSData *)data;

@end
